{% extends "base.html" %}
{% load staticfiles %}
{% block title %}登录{% endblock %}
{% block content %}
<div class="row text-center vertical-middle-sm">
    {% if error_message %}
    <p>{{ error_message }}</p>
    {% endif %}
    <form action="{% url 'myapp:login' %}" method="post">
    {% csrf_token %}
    <label for="username">真实姓名:</label>
    <input type="text" id="username" name="username" required><br>
    <label for="password">学号:</label>
    <input type="text" id="password" name="password" required><br>
    <input type="submit" value="登录">
    </form>
</div>

<script>
    if ( window.history.replaceState ) {
        window.history.replaceState( null, null, window.location.href );
    }
</script>

{% endblock %}
